banner

Functions 06

OPENING QUESTION: The following program calls several functions.

Please digest this function using the sheets I passed out.

Now let's do some peer editing/correcting

Now let's address THESE questions as a group

 

  1. What type of function is this?
  2. How do you know?
  3. Take a moment to see what this function is TRYING to do.
  4. Then please have a conversation and document several ways in which this function could be improved.

Advanced question: Even with some work this function will still frustrate users if they type in their phone # like this: 555-1234. Why is that?

5. Download the beastie and work with your group to improve on it (PLEASE notice that I have renamed the .xml file to match the name of the function. Why do you suppose I did that?

. Then send ONE (count 'em ONE) back up for the class to see.

LEARNING TARGET: I will practice coding functions during today's class.

WORDS O' THE DAY:

  • Parameter
  • Argument

WORK O' THE DAY:

Continue opening tasque

═══════════════════════════